package com.auxgroup.smarthome.service.inner;

import com.auxgroup.smarthome.service.DeviceInfoInnerServiceFallback;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/9/18 11:17.
 */
@FeignClient(name="INNER-SERVICE", fallback = DeviceInfoInnerServiceFallback.class)
public interface DeviceInfoInnerService {

    @GetMapping(value = "/inner/produckey/model_item")
    ApiResponse<String> getProductKeyByModelItem(@RequestParam(value = "modelItem") String modelItem);

}
